package com.union.core.doc.model;

import java.io.File;
import java.util.Date;

import com.mysql.jdbc.StringUtils;
import com.union.core.model.BaseModel;

public class SealSignature extends BaseModel{
	private String title;           //标题                                       
	private String file_name;      //文件名称                                 
	private String file_path;      //文件路径                                 
	private String file_type;      //文件类型                                 
	private String seal_type;      //公章类型                                 
	private long belong_section; //所属部门                                 
	private boolean effect_flag = true;    //有效标志:1-有效，0-删除（默认1）
	private long create_userid;  //创建人                                    
	private Date create_time;    //创建时间 
	private String belong_section_name;//所属部门 名称
	private String seal_type_name;//公章类型 名称
	private File sealFile;
	private String sealFileFileName;
	private String sealFileContentType;
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getFile_name() {
		return file_name;
	}
	public void setFile_name(String file_name) {
		this.file_name = file_name;
	}
	public String getFile_path() {
		return file_path;
	}
	public void setFile_path(String file_path) {
		this.file_path = file_path;
	}
	public String getFile_type() {
		return file_type;
	}
	public void setFile_type(String file_type) {
		this.file_type = file_type;
	}
	public String getSeal_type() {
		return seal_type;
	}
	public void setSeal_type(String seal_type) {
		this.seal_type = seal_type;
	}
	public long getBelong_section() {
		return belong_section;
	}
	public void setBelong_section(long belong_section) {
		this.belong_section = belong_section;
	}
	public boolean isEffect_flag() {
		return effect_flag;
	}
	public void setEffect_flag(boolean effect_flag) {
		this.effect_flag = effect_flag;
	}
	public long getCreate_userid() {
		return create_userid;
	}
	public void setCreate_userid(long create_userid) {
		this.create_userid = create_userid;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public String getBelong_section_name() {
		return belong_section_name;
	}
	public void setBelong_section_name(String belong_section_name) {
		this.belong_section_name = belong_section_name;
	}
	public String getSeal_type_name() {
		return seal_type_name;
	}
	public void setSeal_type_name(String seal_type_name) {
		this.seal_type_name = seal_type_name;
	}
	public File getSealFile() {
		return sealFile;
	}
	public void setSealFile(File sealFile) {
		this.sealFile = sealFile;
	}
	public String getSealFileFileName() {
		return sealFileFileName;
	}
	public void setSealFileFileName(String sealFileFileName) {
		this.sealFileFileName = sealFileFileName;
	}
	public String getSealFileContentType() {
		return sealFileContentType;
	}
	public void setSealFileContentType(String sealFileContentType) {
		this.sealFileContentType = sealFileContentType;
	}
	
	public void copy(SealSignature sealSignature){
		this.title = sealSignature.getTitle();
		if(!StringUtils.isNullOrEmpty(sealSignature.getFile_name()))this.file_name = sealSignature.getFile_name();
		if(!StringUtils.isNullOrEmpty(sealSignature.getFile_path()))this.file_path = sealSignature.getFile_path();
		if(!StringUtils.isNullOrEmpty(sealSignature.getFile_type()))this.file_type = sealSignature.getFile_type();
		this.seal_type = sealSignature.getSeal_type();
		this.belong_section = sealSignature.getBelong_section();
	}
}
